// config/index.js
export default {
    development: {
      baseUrl: '/api' // 开发代理地址
    },
    beta: {
      baseUrl: '//backend-api-02.newbee.ltd/manage-api/v1' // 测试接口域名
    },
    release: {
      baseUrl: '//backend-api-02.newbee.ltd/manage-api/v1' // 正式接口域名
    }
  }
  export function localGet (key) {
    const value = window.localStorage.getItem(key)
    try {
      return JSON.parse(window.localStorage.getItem(key))
    } catch (error) {
      return value
    }
  }
  
  export function localSet (key, value) {
    window.localStorage.setItem(key, JSON.stringify(value))
  }
  
  export function localRemove (key) {
    window.localStorage.removeItem(key)
  }